libxc: save/restore: remove static context variables
authorIan Campbell <ian.campbell@citrix.com>
Tue, 24 May 2011 09:14:10 +0000 (10:14 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 24 May 2011 09:14:10 +0000 (10:14 +0100)
commitbc95f3a87c5f95550d3252d058122c8a8e769b8c
treebfdd358378c5cc07ea6288d011fee2e720098e26
parent048e71cd85e5ab1a91c60a53745c7706004cf3d0
libxc: save/restore: remove static context variables

20544:ad9d75d74bd5 and 20545:cc7d66ba0dad seemingly intended to change these
global static variables into stack variables but didn't remove the static
qualifier.

Also zero the entire struct once with memset rather than clearing fields
piecemeal in two different places.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Vincent Hanquez <vincent.hanquez@eu.citrix.com>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c